import request from '@/utils/request'

// 查询列表
export function listChannelList(query) {
  return request({
    url: '/channelInfo/selectPage',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getChannelList(query) {
  return request({
    url: '/channelInfo/getDetail',
    method: 'get',
    params: query
  })
}

// 新增/修改
export function addChannelList(data) {
  return request({
    url: '/channelInfo/save',
    method: 'post',
    data: data
  })
}

// 删除
export function delChannelList(query) {
  return request({
    url: '/channelInfo/del',
    method: 'get',
    params: query
  })
}

// 删除
export function changeChannelStatus(query) {
  return request({
    url: '/channelInfo/updateStatus',
    method: 'get',
    params: query
  })
}

